Fixed: Compiler warnings about return types

Previously the compiler was warning about conflicting return types for these methods.

This commit fixes the compiler warnings about return types.