bugfix some warnings