fixed bugs
minor fixes