Fixed the Logic