Fix bug with incorrect alpha ordering