fixed a bug on startup
closed #55