Alpha encoding bug fixed