Fix GD layers