debugging bad theme