Changed selection and createf to prevent errors