Corrected the code