Runtime error fixed