bug with location grid fixed. x and y were mixed