bugfixes for bengine v0.3