fixed bugs with wireframe