Fixed some small errors in psych routines

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>