fixes a bug which allowed grid to be opened on any post type