changes to fix wrong style being selected