Class creation possible error fix