Fixed silly logic mistake.