Fixed crashes when thema does not load
Fixed bug in theme loading