remove unnecessary cast
enable all the states