Fixed edge case, thanks Corosus & newthead