Fixed major bug with subs

Thanks DemonhuntersMC.