Use proper check for workaround.