updated and fixed bug in sprite replication
fixed bug