fixed bugs when starting gulp dev