fixed register return value