Fixed bug in getting theme by id