frame margin bug fixed