fixed chomp error