Fixed a bug in frame transparency.