Fixed issue 1449

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