Bug fix

Found a bug in the else case