Prevented 2 stupid errors from happening