Corrected some code bugs