fixes #50: transparency is now getting the correct value