BUG 1.5.0 in base.saveCubeMap

This code worked great on the old version now it does this:
base.saveCubeMap(‘maps/lol#.jpg’)

DirectStart: Starting the game.
Warning: DirectNotify: category 'Interval' already exists
Known pipe types:
  glxGraphicsPipe
(all display modules loaded.)
:util(warning): Adjusting global clock's real time by 0.182653 seconds.
Assertion failed: z < tex->get_z_size() at line 3614 of panda/src/glstuff/glGraphicsStateGuardian_src.cxx
Assertion failed: z < tex->get_z_size() at line 3614 of panda/src/glstuff/glGraphicsStateGuardian_src.cxx
Assertion failed: z < tex->get_z_size() at line 3614 of panda/src/glstuff/glGraphicsStateGuardian_src.cxx
Assertion failed: z < tex->get_z_size() at line 3614 of panda/src/glstuff/glGraphicsStateGuardian_src.cxx
Assertion failed: z < tex->get_z_size() at line 3614 of panda/src/glstuff/glGraphicsStateGuardian_src.cxx
Traceback (most recent call last):
  File "/p/planet/week8/cubemapmaker/cuber.py", line 35, in <module>
    base.saveCubeMap('maps/lol#.jpg')#, size = 512)
  File "linuxroot/usr/share/panda3d/direct/src/showbase/ShowBase.py", line 1976, in saveCubeMap
AssertionError: z < tex->get_z_size() at line 3614 of panda/src/glstuff/glGraphicsStateGuardian_src.cxx