fixing categories templates