remove annoying null at end