fixed bug related to overflow (Run Time Error)