fix bug luvit#59

Please consider weather it correct, I need more test to finger it out.