small bugfix api