Silly coding mistake