Fixed a crashing error with an extra object