I'm not sure why this code is needed as the tweaks appears to work perfectly without it.
SOURCE CODE FOR DOCKIFY