Fixed two "no return statement in non-void function" errors so that it compiles properly.