fix init dimensions