Having error with the flash classes