Remove unnecessary cast.
Don't bother to render spaces.
Properly detach controllers.