bugfix for planes