fixed theme loading method