Fixed return value mismatch