Fix bugs from dock stripping.

this should be deleted