Fixed problem after committing detached head