fix for errors