Fix sprite's anchor on check boundaries method