fixes for realized