Fix sprites system bugs