added missing return statement

Sorry, made a mistake in #578..