How to keep emotions from derailing your investments