Fixed achievement logic bug