fixes #3004, edge case for titanium