Fixes apple creation bug