Fixed crashing for pre-jellybean devices

Closes #5