fixed err, fixed grid