fixed embarassing bug