fix type constraints for application