Corrected some non-sensical code