Fix slot flag regression bug