Fixes alias check

Still ugly though =/