npe bug fix
generating predefined color fix