fix code bug in reverse integer