fix last numberformatexception error, all crashes fixed

Signed-off-by: Liew Zhao Wei <zhaoweiliew@gmail.com>