fix for weird bug