Fixed limit not working in the update command
Minor space fix
Moved $container back to where it belongs