Bug fixed & syntax error corrected