Fixed the stupid ! in my logic