Fixes issue #1408

https://code.google.com/p/libgdx/issues/detail?id=1408