Quick fix for a orienation crash. Need to investigate further...