Caught mistake on return value of method